package com.yan.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.Cacheable;

import com.yan.bean.Link;

@Mapper
public interface LinkMapper {

	// @Cacheable(value = "LinkCache")
	@Cacheable(value = "LinkCache", keyGenerator = "simpleKey")
	@Select("select * from link limit 1;")
	public Link find();

}